package com.software.usercenter.repository;

import com.software.usercenter.entity.User;
import com.software.usercenter.entity.UserRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.Optional;

/**
 * @author : skyzo 11917
 * @date : 2023/4/26
 * 用户角色联结仓库
 */
public interface UserRoleRepository extends JpaRepository<UserRole, Integer>, JpaSpecificationExecutor {
    Optional<UserRole> findByUserId(String id);
}
